<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" 
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>人物管理系统</title>
		<link th:href="@{/css/page.css}" rel="stylesheet" type="text/css" />
		<link th:href="@{/css/css_admin.css}" rel="stylesheet" type="text/css" />
		<link th:href="@{/css/style.css}" rel="stylesheet" type="text/css" />
		<script type="text/javascript" th:src="@{/webjars/jquery/3.2.1/jquery.min.js}"></script>
		
		<style>
			.tab1{border:1px solid #ddd}
			.tab1 td{border:1px solid #ddd}
			.tab1 th{border:1px solid #ddd}
			.tab1 .input2{height:24px; line-height:24px; border:1px solid #ddd; background:#f5f5f5; padding:0 5px; width:200px}
		</style>
</head>
<body>
  <div id="content_add" class="content_top" align="center">
  	<form>  	
  		<input type="hidden" name="id" id="id" th:value="${powerCatalog.id}"/>	
  		<table border="1" cellpadding="0" cellspacing="0" class="tablelist">
   			<tr style="height:30px">
   				<td class="td_add_1" align="right" style="width:150px">分类名称:</td>
   				<td class="td_add_2" align="left">
   					<input type="text" id="catalogname" name="catalogname" th:value="${powerCatalog.catalogname}"  maxlength="50" class="input2"/>
   				</td>
   			</tr>
   			<tr style="height:30px">
   				<td class="td_add_1" align="right">父分类:</td>
   				<td class="td_add_2" align="left">
   					 <select name="parentid" id="parentid">
   						<option value="0">无</option>
               			<div th:each="entity,iterStat:${topPowerCatalogs}">  
				           <option th:value="${entity.id}" th:selected="${powerCatalog.parentid eq entity.id}" th:text="${entity.catalogname}"></option>
				        </div>  
   					</select>
   					说明：未选择父分类时，默认作为一级分类。
   				</td>
   			</tr>
   			<tr style="height:50px">
   				<td colspan="2">
					<button type="button" class="btn btn-success  btn-sm"  style="width:80px" onCLick="addOrUpdatePowerCatalog()">确定</button> &nbsp; &nbsp;
					<button type="reset" class="btn btn-default  btn-sm"  style="width:80px" >重置</button>
   				</td>
   			</tr>
		</table>
	</form>
  </div>
</body>
</html>